package com.itany.nmms.util;

/**
 * @Author:石小俊
 * @Date:2023/1/3 16:19
 * @Version:1.0-SNAPSHOT
 * @Description:
 */
public class ParameterUtil {

    public static boolean isNull(String s){
        return null == s || "".equals(s);
    }


    /**
     * 获取下一个商品编号对应的序列号的值
     * 其数值保持六位,不足六位高位补0
     * @param value
     * @return
     */
    public static String nextValue(String value){
        int i = Integer.parseInt(value)+1;
        String s = "00000"+i;
        return s.substring(s.length()-6);
    }

    public static void main(String[] args) {
        System.out.println(nextValue("000011"));
    }
}
